#include <stdio.h>
double money = 1.1;
const double PI = 3.14;
char msg[] = "Hello World";

void func(){
    printf("func中函数使用全局数据:\n");
    printf("money=%.2lf\n", money);
    printf("PI=%.2lf\n", PI);
    printf("msg=%s\n", msg);
    printf("\n");

    money += 100;

}

int main(){

    func();
    printf("main函数中使用全局数据：\n");
    printf("money=%.2lf\n", money);
    printf("PI=%.2lf\n", PI);
    printf("msg=%s\n", msg);

    

    return 0;
}